const routes = [
  {
    path: "/index",
    name: "home",
    component: () => import("../views/home/Home.vue"),
  },
  {
    path: "/center",
    name: "center",
    component: () => import("../views/center/Center.vue"),
  },
  {
    path: "/news-manage/newsadd",
    name: "newsadd",
    component: () => import("../views/news-manage/NewsAdd.vue"),
  },
  {
    path: "/news-manage/newslist",
    name: "newslist",
    component: () => import("../views/news-manage/NewsList.vue"),
  },
  {
    path: "/product-manage/productadd",
    name: "productadd",
    component: () => import("../views/product-manage/ProductAdd.vue"),
  },
  {
    path: "/product-manage/productlist",
    name: "productlist",
    component: () => import("../views/product-manage/ProductList.vue"),
  },
  {
    path: "/user-manage/useradd",
    name: "useradd",
    component: () => import("../views/user-manage/UserAdd.vue"),
  },
  {
    path: "/user-manage/userlist",
    name: "userlist",
    component: () => import("../views/user-manage/UserList.vue"),
  },
  {
    path: "/",
    redirect: "/index",
  },
  {
    path: "/:pathMatch(.*)*",
    name: "404",
    component: () => import("../views/404.vue"),
  },
];

export default routes;
